package com.discovery.common.ret;


import lombok.Getter;

@Getter
public enum RetCode {

    SUCCESS(200, "success"),

    FAIL(400, "fail"),

    UNAUTHORIZED(401, "unauthorized"),

    NOT_FOUND(404, "not found this page"),

    INTERNAL_SERVER_ERROR(500, "internal server error"),

    //业务状态码
    NOT_FOUND_USERNOT_FOUND_USER(1001, "dont find any User");

    private int code;
    private String msg;

    RetCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
